﻿using SPCoder.Utils.Nodes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SPCoder.FileSystem.Utils.Nodes
{
    public class FileNode : BaseNode, LeafNode
    {
        FileInfo _file = null;
        public FileNode(FileInfo file)
        {
            base.Title = file.Name;
            base.SPObjectType = file.GetType().Name;
            base.Url = file.FullName;
            base.IconPath = "";
            //this._file = file;
        }

        public override object GetRealSPObject()
        {
            _file = new FileInfo(Url);
            return _file;
        }
    }
}
